package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_SynLog", catalog="Id")
public class YsSynLog extends BaseEntity<YsSynLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="tinyint")
	private Integer type;
	@YsField(nameDataBase="Detail", nameJava="detail", typeDataBase="text")
	private String detail;
	@YsField(nameDataBase="Ip", nameJava="ip", typeDataBase="varchar")
	private String ip;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsSynLog setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public YsSynLog setType(Integer type) {
		this.type = type;
		return this;
	}
	public String getDetail() {
		return detail;
	}
	public YsSynLog setDetail(String detail) {
		this.detail = detail;
		return this;
	}
	public String getIp() {
		return ip;
	}
	public YsSynLog setIp(String ip) {
		this.ip = ip;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsSynLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsSynLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsSynLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsSynLog ysSynLog(
		Integer type,
		String detail,
		String ip,
		Integer status
			) {
		YsSynLog entity = new YsSynLog();
		entity.setType(type);
		entity.setDetail(detail);
		entity.setIp(ip);
		entity.setStatus(status);
		return entity;
	}
}